<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width"/>
    <meta name="viewport" content="initial-scale=1.0,user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes">

    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.7&key=61f70e4c4146cb3131cfca7493365692"></script>
    <style type="text/css">
        #container {width:500px; height: 800px; text-align: center}
    </style>
</head>
<body>
<div   id="container">
</div>
<script>
    var longitude=session.get("longitude");
    var dimension=session.get("dimension");
    var map = new AMap.Map('container', {
        center: [longitude, dimension],
        layers: [//使用多个图层
            new AMap.TileLayer.Satellite(),
            new AMap.TileLayer.RoadNet()
        ],
        zooms: [4,18],//设置地图级别范围
        zoom: 13
    });

</script>
</body>
</html>